package com.pomr.service.bind;

import java.util.List;

import com.pomr.model.equipmentstorage.DeviceMatch;
import com.pomr.model.simstorage.SimStorageDetail;
import com.pomr.model.sys.User;

public interface BindService {
	/**
	 * 设备与sim卡绑定
	 * @param device
	 * @return
	 * @throws Exception
	 */
	public boolean bind(DeviceMatch device, User user) throws Exception;
	
	/**
	 * 接触绑定
	 * @param id
	 * @param type id类型 sim/equip
	 * @return
	 * @throws Exception
	 */
	public boolean noBind(String id, String type) throws Exception;
	
	/**
	 * 获取设备绑定的sim卡信息
	 * @param eid
	 * @return
	 * @throws Exception
	 */
	public SimStorageDetail searchBindSim(String eid) throws Exception;
	
	/**
	 * 通过网络供应商以及厂商获取本机构库存SIM卡
	 * @param networkid
	 * @param manufacturerid
	 * @return
	 * @throws Exception
	 */
	public List<SimStorageDetail> searchSimLd(String networkid, String manufacturerid, User user) throws Exception;

}
